package com.hanserwei.han_picture.config;

import com.hanserwei.han_picture.utils.ImageTagsGenerateUtil;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class DashscopeKeyInitializer {
    @Resource
    private DashscopeConfig dashscopeConfig;

    public DashscopeKeyInitializer(DashscopeConfig dashscopeConfig) {
        ImageTagsGenerateUtil.setApiKey(dashscopeConfig.getKey());
    }
}
